import request from '@/utils/request'

// 查询学生列表
export function listStudentclazz(query) {
  return request({
    url: '/feedback/studentclazz/list',
    method: 'get',
    params: query
  })
}

// 查询学生详细
export function getStudentclazz(id) {
  return request({
    url: '/feedback/studentclazz/' + id,
    method: 'get'
  })
}

// 新增学生
export function addStudentclazz(data) {
  return request({
    url: '/feedback/studentclazz',
    method: 'post',
    data: data
  })
}

// 修改学生
export function updateStudentclazz(data) {
  return request({
    url: '/feedback/studentclazz',
    method: 'put',
    data: data
  })
}

// 删除学生
export function delStudentclazz(id) {
  return request({
    url: '/feedback/studentclazz/' + id,
    method: 'delete'
  })
}
// 学生加入班级
export function joinClazz(data) {
  return request({
    url: '/feedback/studentclazz/joinClazz',
    method: 'post',
    data:data
  })
}
